Optimal. Leaf size=203 \[ -2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )+\sqrt {2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-\sqrt {2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 203, normalized size of antiderivative = 1.00, number of steps
used = 16, number of rules used = 13, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.650, Rules used = {132, 65, 338,
303, 1176, 631, 210, 1179, 642, 95, 218, 212, 209} \begin {gather*} -2 \text {ArcTan}\left (\frac {\sqrt [4]{x+1}}{\sqrt [4]{1-x}}\right )+\sqrt {2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{x+1}}\right )-\sqrt {2} \text {ArcTan}\left (\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{x+1}}+1\right )-\frac {\log \left (\frac {\sqrt {1-x}}{\sqrt {x+1}}-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{x+1}}+1\right )}{\sqrt {2}}+\frac {\log \left (\frac {\sqrt {1-x}}{\sqrt {x+1}}+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{x+1}}+1\right )}{\sqrt {2}}-2 \tanh ^{-1}\left (\frac {\sqrt [4]{x+1}}{\sqrt [4]{1-x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 95
Rule 132
Rule 209
Rule 210
Rule 212
Rule 218
Rule 303
Rule 338
Rule 631
Rule 642
Rule 1176
Rule 1179
Rubi steps
\begin {align*} \int \frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x} x} \, dx &=\int \frac {1}{\sqrt [4]{1-x} (1+x)^{3/4}} \, dx+\int \frac {1}{\sqrt [4]{1-x} x (1+x)^{3/4}} \, dx\\ &=-\left (4 \text {Subst}\left (\int \frac {x^2}{\left (2-x^4\right )^{3/4}} \, dx,x,\sqrt [4]{1-x}\right )\right )+4 \text {Subst}\left (\int \frac {1}{-1+x^4} \, dx,x,\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )\\ &=-\left (2 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )\right )-2 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-4 \text {Subst}\left (\int \frac {x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )\\ &=-2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )+2 \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-2 \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )\\ &=-2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}-\frac {\text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}-\text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\frac {\sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )\\ &=-2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}-\sqrt {2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )+\sqrt {2} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )\\ &=-2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )+\sqrt {2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-\sqrt {2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )-\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}-\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}+\frac {\log \left (1+\frac {\sqrt {1-x}}{\sqrt {1+x}}+\frac {\sqrt {2} \sqrt [4]{1-x}}{\sqrt [4]{1+x}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 129, normalized size = 0.64 \begin {gather*} -2 \tan ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )+\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt [4]{1-x^2}}{\sqrt {1-x}-\sqrt {1+x}}\right )-2 \tanh ^{-1}\left (\frac {\sqrt [4]{1+x}}{\sqrt [4]{1-x}}\right )+\sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt [4]{1-x^2}}{\sqrt {1-x}+\sqrt {1+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (1+x \right )^{\frac {1}{4}}}{\left (1-x \right )^{\frac {1}{4}} x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 329 vs.
\(2 (156) = 312\).
time = 0.47, size = 329, normalized size = 1.62 \begin {gather*} 2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (x - 1\right )} \sqrt {\frac {\sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} + x - \sqrt {x + 1} \sqrt {-x + 1} - 1}{x - 1}} - \sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} - x + 1}{x - 1}\right ) + 2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (x - 1\right )} \sqrt {-\frac {\sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} - x + \sqrt {x + 1} \sqrt {-x + 1} + 1}{x - 1}} - \sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} + x - 1}{x - 1}\right ) - \frac {1}{2} \, \sqrt {2} \log \left (\frac {4 \, {\left (\sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} + x - \sqrt {x + 1} \sqrt {-x + 1} - 1\right )}}{x - 1}\right ) + \frac {1}{2} \, \sqrt {2} \log \left (-\frac {4 \, {\left (\sqrt {2} {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} - x + \sqrt {x + 1} \sqrt {-x + 1} + 1\right )}}{x - 1}\right ) + 2 \, \arctan \left (\frac {{\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}}}{x - 1}\right ) + \log \left (\frac {x + {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} - 1}{x - 1}\right ) - \log \left (-\frac {x - {\left (x + 1\right )}^{\frac {1}{4}} {\left (-x + 1\right )}^{\frac {3}{4}} - 1}{x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt [4]{x + 1}}{x \sqrt [4]{1 - x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (x+1\right )}^{1/4}}{x\,{\left (1-x\right )}^{1/4}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________